package com.eff.android.api.model;

import java.io.Serializable;
import java.util.List;

public class Setting implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static final String TAG = Setting.class.getSimpleName();
	
	private boolean sound;
	
	private static Setting setting = null;
	
	public Setting(){
		sound = true;
	}
	
	public static Setting newInstance(){
		if (setting != null)
			return setting;
		setting = new Setting();
		return setting;
	}
	
	public ModelSubject getSubject() {
		return Subject.getInstance().getType();
	}
	public String getSubjectName() {
		return Subject.getInstance().getSubjectName();
	}
	public void setSubject(String type) {
		Subject.getInstance().setType(type);
	}
	public List<ModelSubject> getListSubject() {
		return Subject.getInstance().getListType();
	}
	public void addSubject(ModelSubject model) {
		Subject.getInstance().addType(model);
	}
	
	public boolean isSound() {
		return sound;
	}
	public void setSound(boolean sound) {
		this.sound = sound;
	}
	public Type.TypeType getType() {
		return Type.getInstance().getType();
	}
	public void setType(Type.TypeType type) {
		Type.getInstance().setType(type);
	}

	public Level.LevelType getLevel() {
		return Level.getInstance().getType();
	}

	public void setLevel(Level.LevelType level) {
		Level.getInstance().setType(level);
	}
	
}